package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the VEHICULO database table.
 * 
 */
@Entity
@Table(name="VEHICULO")
public class Vehiculo implements Serializable {
	private static final long serialVersionUID = 1L;
	private VehiculoPK id;
	private String agntSync;
	private BigDecimal altura;
	private BigDecimal ancho;
	private String anoFabric;
	private String ceticoDesc;
	private String codCetico;
	private String codColor01Orig;
	private String codColor02Orig;
	private String codColor03Orig;
	private String codDirectiva;
	private String codImportador;
	private String descColor01;
	private String descColor02;
	private String descColor03;
	private String fgActividad;
	private String fgBaja;
	private String fgImportado;
	private String fgProvincia;
	private String importadorDesc;
	private BigDecimal longitud;
	private BigDecimal numAsientos;
	private BigDecimal numCilindros;
	private BigDecimal numEjes;
	private String numMotor;
	private BigDecimal numPasajeros;
	private String numPoliza;
	private BigDecimal numPuertas;
	private BigDecimal numRuedas;
	private String numSerie;
	private String numTarjProp;
	private BigDecimal pesoBruto;
	private BigDecimal pesoSeco;
	private String tituNumPoliza;
	private Date tsInscrip;
	private Date tsUltSync;
	private TmCondVehi tmCondVehi;
	private TmTipoCarr tmTipoCarr;
	private TmTipoVehi tmTipoVehi;
	private TmTipoComb tmTipoComb;
	private TmModeloVehi tmModeloVehi;
	private TmMarcaVehi tmMarcaVehi;
	private Partida partida;

    public Vehiculo() {
    }


	@EmbeddedId
	public VehiculoPK getId() {
		return this.id;
	}

	public void setId(VehiculoPK id) {
		this.id = id;
	}
	

	@Column(name="AGNT_SYNC", length=4)
	public String getAgntSync() {
		return this.agntSync;
	}

	public void setAgntSync(String agntSync) {
		this.agntSync = agntSync;
	}


	@Column(precision=4, scale=2)
	public BigDecimal getAltura() {
		return this.altura;
	}

	public void setAltura(BigDecimal altura) {
		this.altura = altura;
	}


	@Column(precision=4, scale=2)
	public BigDecimal getAncho() {
		return this.ancho;
	}

	public void setAncho(BigDecimal ancho) {
		this.ancho = ancho;
	}


	@Column(name="ANO_FABRIC", length=4)
	public String getAnoFabric() {
		return this.anoFabric;
	}

	public void setAnoFabric(String anoFabric) {
		this.anoFabric = anoFabric;
	}


	@Column(name="CETICO_DESC", length=30)
	public String getCeticoDesc() {
		return this.ceticoDesc;
	}

	public void setCeticoDesc(String ceticoDesc) {
		this.ceticoDesc = ceticoDesc;
	}


	@Column(name="COD_CETICO", length=1)
	public String getCodCetico() {
		return this.codCetico;
	}

	public void setCodCetico(String codCetico) {
		this.codCetico = codCetico;
	}


	@Column(name="COD_COLOR_01_ORIG", length=30)
	public String getCodColor01Orig() {
		return this.codColor01Orig;
	}

	public void setCodColor01Orig(String codColor01Orig) {
		this.codColor01Orig = codColor01Orig;
	}


	@Column(name="COD_COLOR_02_ORIG", length=30)
	public String getCodColor02Orig() {
		return this.codColor02Orig;
	}

	public void setCodColor02Orig(String codColor02Orig) {
		this.codColor02Orig = codColor02Orig;
	}


	@Column(name="COD_COLOR_03_ORIG", length=30)
	public String getCodColor03Orig() {
		return this.codColor03Orig;
	}

	public void setCodColor03Orig(String codColor03Orig) {
		this.codColor03Orig = codColor03Orig;
	}


	@Column(name="COD_DIRECTIVA", length=2)
	public String getCodDirectiva() {
		return this.codDirectiva;
	}

	public void setCodDirectiva(String codDirectiva) {
		this.codDirectiva = codDirectiva;
	}


	@Column(name="COD_IMPORTADOR", length=4)
	public String getCodImportador() {
		return this.codImportador;
	}

	public void setCodImportador(String codImportador) {
		this.codImportador = codImportador;
	}


	@Column(name="DESC_COLOR_01", length=30)
	public String getDescColor01() {
		return this.descColor01;
	}

	public void setDescColor01(String descColor01) {
		this.descColor01 = descColor01;
	}


	@Column(name="DESC_COLOR_02", length=30)
	public String getDescColor02() {
		return this.descColor02;
	}

	public void setDescColor02(String descColor02) {
		this.descColor02 = descColor02;
	}


	@Column(name="DESC_COLOR_03", length=30)
	public String getDescColor03() {
		return this.descColor03;
	}

	public void setDescColor03(String descColor03) {
		this.descColor03 = descColor03;
	}


	@Column(name="FG_ACTIVIDAD", length=1)
	public String getFgActividad() {
		return this.fgActividad;
	}

	public void setFgActividad(String fgActividad) {
		this.fgActividad = fgActividad;
	}


	@Column(name="FG_BAJA", length=1)
	public String getFgBaja() {
		return this.fgBaja;
	}

	public void setFgBaja(String fgBaja) {
		this.fgBaja = fgBaja;
	}


	@Column(name="FG_IMPORTADO", length=1)
	public String getFgImportado() {
		return this.fgImportado;
	}

	public void setFgImportado(String fgImportado) {
		this.fgImportado = fgImportado;
	}


	@Column(name="FG_PROVINCIA", length=1)
	public String getFgProvincia() {
		return this.fgProvincia;
	}

	public void setFgProvincia(String fgProvincia) {
		this.fgProvincia = fgProvincia;
	}


	@Column(name="IMPORTADOR_DESC", length=40)
	public String getImportadorDesc() {
		return this.importadorDesc;
	}

	public void setImportadorDesc(String importadorDesc) {
		this.importadorDesc = importadorDesc;
	}


	@Column(precision=4, scale=2)
	public BigDecimal getLongitud() {
		return this.longitud;
	}

	public void setLongitud(BigDecimal longitud) {
		this.longitud = longitud;
	}


	@Column(name="NUM_ASIENTOS", precision=3)
	public BigDecimal getNumAsientos() {
		return this.numAsientos;
	}

	public void setNumAsientos(BigDecimal numAsientos) {
		this.numAsientos = numAsientos;
	}


	@Column(name="NUM_CILINDROS", precision=2)
	public BigDecimal getNumCilindros() {
		return this.numCilindros;
	}

	public void setNumCilindros(BigDecimal numCilindros) {
		this.numCilindros = numCilindros;
	}


	@Column(name="NUM_EJES", precision=3)
	public BigDecimal getNumEjes() {
		return this.numEjes;
	}

	public void setNumEjes(BigDecimal numEjes) {
		this.numEjes = numEjes;
	}


	@Column(name="NUM_MOTOR", length=30)
	public String getNumMotor() {
		return this.numMotor;
	}

	public void setNumMotor(String numMotor) {
		this.numMotor = numMotor;
	}


	@Column(name="NUM_PASAJEROS", precision=3)
	public BigDecimal getNumPasajeros() {
		return this.numPasajeros;
	}

	public void setNumPasajeros(BigDecimal numPasajeros) {
		this.numPasajeros = numPasajeros;
	}


	@Column(name="NUM_POLIZA", length=15)
	public String getNumPoliza() {
		return this.numPoliza;
	}

	public void setNumPoliza(String numPoliza) {
		this.numPoliza = numPoliza;
	}


	@Column(name="NUM_PUERTAS", precision=2)
	public BigDecimal getNumPuertas() {
		return this.numPuertas;
	}

	public void setNumPuertas(BigDecimal numPuertas) {
		this.numPuertas = numPuertas;
	}


	@Column(name="NUM_RUEDAS", precision=2)
	public BigDecimal getNumRuedas() {
		return this.numRuedas;
	}

	public void setNumRuedas(BigDecimal numRuedas) {
		this.numRuedas = numRuedas;
	}


	@Column(name="NUM_SERIE", length=30)
	public String getNumSerie() {
		return this.numSerie;
	}

	public void setNumSerie(String numSerie) {
		this.numSerie = numSerie;
	}


	@Column(name="NUM_TARJ_PROP", length=10)
	public String getNumTarjProp() {
		return this.numTarjProp;
	}

	public void setNumTarjProp(String numTarjProp) {
		this.numTarjProp = numTarjProp;
	}


	@Column(name="PESO_BRUTO", precision=6, scale=3)
	public BigDecimal getPesoBruto() {
		return this.pesoBruto;
	}

	public void setPesoBruto(BigDecimal pesoBruto) {
		this.pesoBruto = pesoBruto;
	}


	@Column(name="PESO_SECO", precision=6, scale=3)
	public BigDecimal getPesoSeco() {
		return this.pesoSeco;
	}

	public void setPesoSeco(BigDecimal pesoSeco) {
		this.pesoSeco = pesoSeco;
	}


	@Column(name="TITU_NUM_POLIZA", length=2)
	public String getTituNumPoliza() {
		return this.tituNumPoliza;
	}

	public void setTituNumPoliza(String tituNumPoliza) {
		this.tituNumPoliza = tituNumPoliza;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_INSCRIP")
	public Date getTsInscrip() {
		return this.tsInscrip;
	}

	public void setTsInscrip(Date tsInscrip) {
		this.tsInscrip = tsInscrip;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="TS_ULT_SYNC")
	public Date getTsUltSync() {
		return this.tsUltSync;
	}

	public void setTsUltSync(Date tsUltSync) {
		this.tsUltSync = tsUltSync;
	}


	//bi-directional many-to-one association to TmCondVehi
    @ManyToOne
	@JoinColumn(name="COD_COND_VEHI", nullable=false)
	public TmCondVehi getTmCondVehi() {
		return this.tmCondVehi;
	}

	public void setTmCondVehi(TmCondVehi tmCondVehi) {
		this.tmCondVehi = tmCondVehi;
	}
	

	//bi-directional many-to-one association to TmTipoCarr
    @ManyToOne
	@JoinColumn(name="COD_TIPO_CARR", nullable=false)
	public TmTipoCarr getTmTipoCarr() {
		return this.tmTipoCarr;
	}

	public void setTmTipoCarr(TmTipoCarr tmTipoCarr) {
		this.tmTipoCarr = tmTipoCarr;
	}
	

	//bi-directional many-to-one association to TmTipoVehi
    @ManyToOne
	@JoinColumn(name="COD_TIPO_VEHI", nullable=false)
	public TmTipoVehi getTmTipoVehi() {
		return this.tmTipoVehi;
	}

	public void setTmTipoVehi(TmTipoVehi tmTipoVehi) {
		this.tmTipoVehi = tmTipoVehi;
	}
	

	//bi-directional many-to-one association to TmTipoComb
    @ManyToOne
	@JoinColumn(name="COD_TIPO_COMB", nullable=false)
	public TmTipoComb getTmTipoComb() {
		return this.tmTipoComb;
	}

	public void setTmTipoComb(TmTipoComb tmTipoComb) {
		this.tmTipoComb = tmTipoComb;
	}
	

	//bi-directional many-to-one association to TmModeloVehi
    @ManyToOne
	@JoinColumn(name="COD_MODELO")
	public TmModeloVehi getTmModeloVehi() {
		return this.tmModeloVehi;
	}

	public void setTmModeloVehi(TmModeloVehi tmModeloVehi) {
		this.tmModeloVehi = tmModeloVehi;
	}
	

	//bi-directional many-to-one association to TmMarcaVehi
    @ManyToOne
	@JoinColumn(name="COD_MARCA", nullable=false)
	public TmMarcaVehi getTmMarcaVehi() {
		return this.tmMarcaVehi;
	}

	public void setTmMarcaVehi(TmMarcaVehi tmMarcaVehi) {
		this.tmMarcaVehi = tmMarcaVehi;
	}
	

	//bi-directional many-to-one association to Partida
    @ManyToOne
	@JoinColumn(name="REFNUM_PART", nullable=false, insertable=false, updatable=false)
	public Partida getPartida() {
		return this.partida;
	}

	public void setPartida(Partida partida) {
		this.partida = partida;
	}
	
}